Object.defineProperty(exports, "__esModule", {
  value: true
});
var def_ColorManager = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
    this.index = 0;
    this.colos = [cc.color(205, 64, 255), cc.color(246, 133, 19), cc.color(254, 62, 89), cc.color(84, 231, 255), cc.color(246, 223, 19), cc.color(84, 231, 153)];
  }
  return babel_createClass(_ctor, [{
    key: "getColor",
    value: function getColor() {
      this.index++;
      this.colos.length <= this.index && (this.index = 0);
      return this.colos[this.index];
    }
  }], [{
    key: "getInstance",
    value: function getInstance() {
      null == this.instance && (this.instance = new _ctor());
      return this.instance;
    }
  }]);
}();
exports.default = def_ColorManager;
def_ColorManager.instance = null;